<?php


/**
 * PHP settings 
 */
ini_set("memory_limit","30M");
set_time_limit('3000');
ini_set('max_execution_time', 3000);
ini_set('max_input_time', 3000);


/**
 * Server dependent configuration settings 
 */

/**
 * Define application environment
 * * development
 * * production
 */
defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));



//define('SECURE_URL', 'https://secure.latedeals.ie');
define('SECURE_URL', '');



// Define path to site root directory
defined('SITE_ROOT_PATH') || define('SITE_ROOT_PATH', realpath(dirname(__FILE__).'/../../').'/');


define('FEATURE_HOTEL_MAPPING', FALSE);

// This is default for FEATURE_HOTEL_FLAGGING
defined('FEATURE_HOTEL_FLAGGING') || define('FEATURE_HOTEL_FLAGGING', FEATURE_HOTEL_MAPPING ? TRUE : FALSE);


 /* Caching */
$aws_cache_servers = array('cacheld1.5jpkr2.0001.euw1.cache.amazonaws.com:11211',
'cacheld1.5jpkr2.0002.euw1.cache.amazonaws.com:11211',
'cacheld1.5jpkr2.0003.euw1.cache.amazonaws.com:11211');
define("CHOSTS", serialize ($aws_cache_servers));


define("STAGEENV", "DEV");
error_reporting(E_ALL & ~E_NOTICE);
ini_set("display_errors", 1);
ini_set("html_errors", 0);

// MySQL database settings
define("DBHOST", "localhost");
define("DBUSER", "root");
define("DBPASS", "");
define("DBNAME", "latedeals");
/*
define("DBHOST", "int.instance21779.db.xeround.com:14397");
define("DBUSER", "xerolate");
define("DBPASS", "am1g0pa$$");
define("DBNAME", "latedeals"); */

// Server constants
define('SITE_ROOT_PATH_DOMXML_HAPPY', '/www/latedeals/');
define('UPLOAD_HTTP_PERM', 'http://media.latedeals.ie/');
define('UPLOAD_ABS_PERM', SITE_ROOT_PATH.'media.latedeals.ie/');
define('UPLOAD_HTTP_TEMP', 'http://temp.latedeals.ie/');
define('UPLOAD_ABS_TEMP', SITE_ROOT_PATH.'temp.latedeals.ie/');
define('MAIN_SITE_ROOT', 'http://www.latedeals.ie');

//MISC FILES
define('FILE_TOP_SEARCHES', SITE_ROOT_PATH.'tasks/top_searches.txt');
define('FILE_TOP_SKI_SEARCHES', SITE_ROOT_PATH.'tasks/top_ski_searches.txt');
define('SITE_NAME', 'latedeals');
    
// GRAPHICS UPLOADER VARIABLES //
define('MAX_FILE_SIZE', '9000000');// 9 MB

// thumbnail logo images 
define('FULL_WIDTH', '340');
define('FULL_HEIGHT', '255');

// full size logo images
define('THUMB_WIDTH', '108');
define('THUMB_HEIGHT', '80');

// CONFIGURATION values
define("SUPPLIERS_CONFIG_FILE", SITE_ROOT_PATH."/_lib/config/hotels.config");
define("SUPPLIER_DEFAULT_DATE_FORMAT", "d/m/Y");

// Micros API
define("MICROS_API_USER", "greyapi");
define("MICROS_API_PASS", "52366");

// REALEX CREDENTAILS
/*
define("REALEX_MERCHANTID", "localhost");
define("REALEX_SECRET", "root");
define("REALEX_ACCOUNT", ""); */
define("REALEX_MERCHANTID", "supersun");
define("REALEX_SECRET", "lh3kipxkQD");
define("REALEX_ACCOUNT", "internettest");

// Timeout settings
define("SEARCH_RESULTS_TIMEOUT", 1200); // 20 minutes
define("BOOKING_TIMEOUT", 600); // 10 minutes


// YouTravel commision rate
define("COMISSION_PERCENT", 0.1); // price margin 15%

// Weather icons
define('WEATHER_ICONS_DIR', '/images/weather_icons/lg/');

//define('AWS_ACCESS_KEY', 'AKIAIGI2IPLUM6IP66UQ');
//define('AWS_SECRET_KEY', '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');


define('AWS_ACCESS_KEY', 'AKIAJZSQBAYJBWFW4QDQ');
define('AWS_SECRET_KEY', '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');

define('MODE_RUN', 'debbug');

//define tax about credit card
define('CREDIT_CARD_FREE', 1.95);

define('SEND_GRID_USER','amigomedia');
define('SEND_GRID_PASSWORD','am1g0pa$$');

?>